<template>
  <div id="app">
     <tab-bar>
      <tab-bar-item  path="/home" activeColor="red">
        <template v-slot:slot-tab-icon>
          <img src="~assets/img/tabbar/home.svg" alt="">
        </template>
        <template v-slot:slot-tab-icon-active>
          <img src="~assets/img/tabbar/home_active.svg" alt="">
        </template>
        <template v-slot:slot-tab-text>
          <div>首页</div>
        </template>       
      </tab-bar-item>
      <tab-bar-item path="/category" activeColor="blue">
        <template v-slot:slot-tab-icon>
          <img  src="~assets/img/tabbar/category.svg" alt="">
        </template>
        <template v-slot:slot-tab-icon-active>
          <img  src="~assets/img/tabbar/category_active.svg" alt="">
        </template>
        <template v-slot:slot-tab-text>
           <div>分类</div>
        </template>    
      </tab-bar-item>
      <tab-bar-item path="/cart" activeColor="brown">
        <template v-slot:slot-tab-icon>
          <img src="~assets/img/tabbar/shopcart.svg" alt="">
        </template>
        <template v-slot:slot-tab-icon-active>
          <img  src="~assets/img/tabbar/shopcart_active.svg" alt="">
        </template>
        <template v-slot:slot-tab-text>
           <div>购物车</div>
        </template>    
      </tab-bar-item>
      <tab-bar-item path="/profile" activeColor="orange">
        <template v-slot:slot-tab-icon>
            <img src="~assets/img/tabbar/profile.svg" alt="">
        </template>
        <template v-slot:slot-tab-icon-active>
           <img src="~assets/img/tabbar/profile_active.svg" alt="">
        </template>
        <template v-slot:slot-tab-text>
           <div>个人</div>
        </template>      
      </tab-bar-item>
    </tab-bar>
    <router-view></router-view>
  </div>
</template>
<script>
import TabBar from 'components/tabbar/TabBar.vue'
import TabBarItem from 'components/tabbar/TabBarItem.vue'

export default {
  name: 'App',
  components: {
    TabBar,
    TabBarItem
  }
}
</script>
<style lang="stylus">
  
</style>
